package com.example.demo.api;


import com.example.demo.constant.ProjectConstant;
import com.spring4all.swagger.EnableSwagger2Doc;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
/**
 * Created by Administrator on 2018/7/20.
 */
@FeignClient(value = ProjectConstant.BASE_NAME)
@Api(description = "初始服务",position = 1)
@EnableSwagger2Doc
@RequestMapping(value = ProjectConstant.SAYHELLO, produces = MediaType.APPLICATION_JSON_VALUE)
public interface HelloService {

    @ApiOperation(value = "初始服务调用")
    @GetMapping("/sayHello")
    String sayHello(@ApiParam(value = "名称",required = true)String name);

}
